Unicode Platform Script Code Constants

ATSUI identifies the script ID of a particular font name string by a constant of type FontScriptCode. You can use one of these constants as part of your search criteria in the functions ATSUFindFontFromName and ATSUFindFontName. The function ATSUGetIndFontName passes back a constant of this type to represent the script ID of a font name string. Note that is the encoding of the font name string is not specified, you do not need to specify a script code.

The font name script code identifies the platform version, or in the case of the Macintosh platform, the script ID of the font name. The script ID identifies the writing system being used (for example, MacRoman). A font can support multiple encodings.

You can pass the kFontNoScript constant if you do not care about the script ID of a font name string. In this case, ATSUFindFontName and ATSUFindFontFromName will pass back the first font in the name table that matches the other font name parameters that you specified. These constants are available with ATSUI 1.0.

enum {
    kFontNoScript                   = -1,
    kFontUnicodeDefaultSemantics    = 0,
    kFontUnicodeV1_1Semantics       = 1,
    kFontISO10646_1993Semantics     = 2,
    kFontUnicodeV2BasedSemantics    = 3

Constant descriptions

kFontNoScript
Indicates that you do not care about the script ID of the font name. In this case, you will get the first font name in the name table that matches the other parameters you specified.

kFontUnicodeDefaultSemantics
Identifies the default Unicode character code specification as the platform version of the font name string.

kFontUnicodeV1_1Semantics
Identifies version 1.1 of the Unicode character code specification as the platform version of the font name string.

kFontISO10646_1993Semantics
Identifies the ISO/IEC 10646-1993 specification as the platform version of the font name string.

kFontUnicodeV2BasedSemantics
Identifies version 2.0 or later of the Unicode character code specification as the platform version of the font name string.

© 2000 Apple Computer, Inc. – (Last Updated 25 Jan 00)